package lx.springBoot.entry;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by lx on 2017/7/4.
 */
@Data
public class User implements Serializable{
    private static final long serialVersionUID = 1L;

    private Integer id;

    private String loginName;

    @JSONField(serialize = false)
    private String password;

    //不序列化
    @JSONField(serialize = false)
    private String realName;

    private Integer type;

    @JSONField(serialize = false)
    private Integer status;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date lastTime;

    @JSONField(serialize = false)
    private String lastIp;

    @JSONField(serialize = false)
    private String cookieId;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
